package javaapplication7;

import java.util.Scanner;
/*
/**
* @(#)Fraccion.java
*
*
* @author yop
* @version 1.00 2011/10/16
*/


public class exemple {
private int num;
private int den;

public exemple() {
num=1000;
den=2000;
}

public exemple(int num,int den){
this.num=num;
this.den=den;
}

public exemple(exemple f){
this.num=f.num;
this.den=f.den;
}

public void setNum(int x){
this.num=x;
}

public void setDen(int y){
this.den=y;
}
public String toString(){
return ("dato 1 "+num+"  dato 2 "+den);
}

public String valorDoble(){
return ("dato 1 * 2= "+num*2+"  dato 2 * 2= "+den*2);
}

}